
//
//  DYZChooseSeriesModel.m
//  发布车源
//
//  Created by xmy on 16/8/19.
//  Copyright © 2016年 xmy. All rights reserved.
//

#import "DYZChooseSeriesModel.h"
#import "YYModel.h"
#import "DYZChooseSeriesChildModel.h"

@implementation DYZChooseSeriesModel
+ (instancetype)carWithDict:(NSDictionary*)dict
{
    DYZChooseSeriesModel* car = [[self alloc] init];
    car.carlineList = dict[@"carlineList"];
    car.label = dict[@"label"];
   
    return car;
}

-(NSArray *)carlineList{
    
    NSMutableArray *array = [NSMutableArray array];
    
    for (NSDictionary *dict in _carlineList) {
        
        DYZChooseSeriesChildModel *model = [DYZChooseSeriesChildModel yy_modelWithDictionary:dict];
        [array addObject:model];
    }
    return array;
}

//-(void)setCarlineList:(NSArray *)carlineList{
//    
//    _carlineList = carlineList;
//    
//    NSMutableArray *array = [NSMutableArray array];
//    
//    for (NSDictionary *dict in carlineList) {
//        
//        DYZChooseSeriesChildModel *model = [DYZChooseSeriesChildModel yy_modelWithDictionary:dict];
//        [array addObject:model];
//    }
//    _carlineList = array.copy;
//    
//}
@end
